{% extends 'common/panel.html' %}
{% block head %}
	<link rel="stylesheet" href="{{MEDIA_URL}}projects/nc_mlpa/css/replication.css" type="text/css" media="all" title="no title" charset="utf-8"/>
	<script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script>
	<script src="{{MEDIA_URL}}report/js/jquery.hoverIntent.minified.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script>
	<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.tabs.js"></script>	
{% endblock head %}
{% block title %}{{array.name}} Replication Report{% endblock title %}
{% block panel %}
	    <script type="text/javascript" charset="utf-8">
				lingcod.onShow(function(){
					$('#replication_no_lop > p > a.no_lop_mpas_link').toggle( 
						function() {
							$('#replication_no_lop > #no_lop_mpas').show();
						}, 
						function() {
							$('#replication_no_lop > #no_lop_mpas').hide(); 
						}
					);
				});
	    </script>
	<p>The report on this page pertains to open coast MPA spacing. For information on estuarine replication and spacing, see the <a href="{% url return_active_general_file est_dl.pk %}">{{est_dl.name}}</a>.</p>
	
	<p>Each of the white boxes below represents a cluster of MPAs or a single MPA.  Each row of the table represents a particular habitat within that cluster or MPA.
		If the cluster contains enough of that habitat, the row will be colored light blue and the "Rep" column will contain the word true.  For habitats with simple replication
		standards, the additional needed column will show how much more habitat needed to count as a replicate.  For habitats with complex replication standards, you can place the 
		cursor over the word "Explanation" to get more information.</p>
	<br>
    {% include "array_replication.html" %}
	{% if array.unassigned_lop_opencoast_mpas %}
		<span id="replication_no_lop">
		<p>This array contains <a href="#" class="no_lop_mpas_link">{{array.unassigned_lop_opencoast_mpas.count}} open coast MPA{% if array.unassigned_lop_opencoast_mpas.count > 1 %}s{% endif %}</a> with unassigned levels of protection.  Estuarine (non open coast) MPAs are not considered in this analysis.</p>
		{% with array.unassigned_lop_opencoast_mpas as unassigned_mpas %}
			{% include "unassigned_lop_mpas_table.html" %}
		{% endwith %}
		</span>
	{% else %}
		<p>All open coast MPAs in this array received level of protection assignments.  Estuarine (non open coast) MPAs are not considered in this analysis.</p>
	{% endif %}
	<p>Unless you are using the 'Ignore LOP' button, the validity of these results depend on MarineMap's ability to accurately calculate levels of protection for each MPA.  MarineMap can not calculate a level of protection
		unless all proposed allowed uses are selected from the drop down boxes.  If anything is entered into the "other allowed uses" field, MarineMap will not be able to calculate a level
		of protection.  Due to these limitations, these results should be regarded as preliminary and subject to review by the Science Advisory Team and staff.</p>
{% endblock panel %}